<template>
   <div>
      <component :is="components.get(cnyzs.COMMON_PC_HOME_TEMPLATE)"></component>
   </div>
</template>
<script lang="ts" setup>
import { storeToRefs } from 'pinia';
import System from '~/pages/System/index.vue'
import systemtype from "~/pages/System/[System-Type]/index.vue"
import emptyHome from "~/components/common-empty-home.vue"
const { cnyzs } = storeToRefs(cnyzsCommonpinia())
const components: any = new Map<string, any>()
components.set(cnyzs.value.COMMON_PC_HOME_TEMPLATE, systemtype) // 系统模板
components.set('ForumSystem', System)  // 社区聚合
components.set('empty', emptyHome) // 空页面
onMounted(() => {
   document.body.style.setProperty('--aoir-color-primary', cnyzs.value.COMMON_THEMECOLOR);
})
</script>
<style lang="scss" scoped></style>